﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ClassLibrary
{
    public class SimpleMockSupport
    {
        private readonly Random r = new Random();

        public virtual int GetFirst()
        {
            return r.Next(100);
        }

        public virtual int GetSecond()
        {
            return r.Next(100, 200);
        }

    }

    public class SimpleMock
    {
        public SimpleMock()
        {
            simpleMockSupport = new SimpleMockSupport();
        }

        private SimpleMockSupport simpleMockSupport;
        public SimpleMockSupport SimpleMockSupport
        {
            get { return simpleMockSupport; }
            set { simpleMockSupport = value; }
        }

        public int Add()
        {
            return simpleMockSupport.GetFirst()+simpleMockSupport.GetSecond();
        }
    }
}
